<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <title>Test cases for ADMIRAL dataset tree building</title>

    <!-- Import MochiKit modules: require MochiKit library functions to be fully qualified -->
    <script type="text/javascript">MochiKit = {__export__: false};</script>
    <script type="text/javascript" src="../../../MochiKit/Base.js"></script>
    <script type="text/javascript" src="../../../MochiKit/Iter.js"></script>
    <script type="text/javascript" src="../../../MochiKit/Logging.js"></script>

    <!-- Import jQuery and unit testing framework -->
<!--
    <link type="text/css" href="../../../jQuery/css/smoothness/jquery-ui-1.8.custom.css" rel="stylesheet" />  
-->
    <script type="text/javascript" src="../../../jQuery/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../../../jQuery/js/jquery-ui-1.8.custom.min.js"></script>
    <link rel="stylesheet" href="../../../qunit/testsuite.css" type="text/css" media="screen" />
    <script type="text/javascript" src="../../../qunit/testrunner.js"></script>
    <script type="text/javascript" src="../../../qunit/qunit.testhelpers.js"></script>

    <!-- import rdfquery libraries -->
    <script type="text/javascript" src="../../../rdfquery/jquery.uri.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.xmlns.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.curie.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.datatype.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.rdf.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.rdfa.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.datatype.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.rdf.json.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.rdf.xml.js"></script>
    <script type="text/javascript" src="../../../rdfquery/jquery.rdf.turtle.js"></script>

    <!-- JSON conversion script -->
    <script type="text/javascript" src="../../../jQuery/jquery.json-2.2.js"></script>
    
    <!-- zzz style rules
    <link type="text/css" href="../../css/shuffl.css" rel="stylesheet"/>
    -->

    <!-- Import MiscLib modules -->
    <script type="text/javascript" src="../../../MiscLib/jquery.outerhtml.js"></script>    

    <!-- Import Admiral modules -->
    <script type="text/javascript" src="../../../Admiral/admiral-base.js"></script>
    <script type="text/javascript" src="../../../Admiral/Error.js"></script>
    <script type="text/javascript" src="../../../Admiral/AsyncComputation.js"></script>

    <!-- Import generic code from the dataset utils package -->
    <script type="text/javascript" src="../../../DatasetUtils/js/DatasetTree.js"></script>
    <script type="text/javascript" src="../../../DatasetUtils/js/DatasetManifestDictionary.js"></script>

    <!-- Import the modules under test -->
    <script type="text/javascript" src="../../ListDatasets.js"></script>
    <script type="text/javascript" src="../../GetDatasetsList.js"></script>
    <script type="text/javascript" src="../../GetDatasetDetails.js"></script>
  
    <!-- Import test modules -->
    <script type="text/javascript" src="../../test/TestSelectDataset.js"></script>

    <!--  Import admiral configuration details -->
    <!--  NOTE: these are loaded from an absolute location in the web server -->
    <script type="text/javascript" src="/js/admiral-config.js"></script>

    <!-- Execute the tests -->
	  <script>
	  log.debug("starting");
	  jQuery(document).ready( function () {
		    TestSelectDataset();
	  });
	  </script>  

</head>

<body>
		<h1>ADMIRAL select dataset for viewing tests</h1>
		<h2 id="banner"></h2>
		<h2 id="userAgent"></h2>
		<ol id="tests"></ol>
    <div id="main" style="height:22em">
    </div> 
</body>

</html>
